<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="/GIT/E-shop/E-shop/Public/css/bootstrap.css">
</head>
<body>
<div>
	<a href="<?php echo U('product/view');?>">
      	<h2>
      		<!-- <span class="glyphicon glyphicon-plus-sign"></span> -->
      	    返回商品页
      	</h2>
    </a>
</div>
<div class="table-responsive">
	<table class="table table-striped table-bordered table-hover table-condensed text-center">
		<thead>
			<tr>
				<th class="text-center">图片ID</th>
				<th class="text-center">商品名称</th>
				<th class="text-center">商品图片</th>
				<th class="text-center">修改/删除</th>
			</tr>
		</thead>
		<tbody>
			<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tab): $mod = ($i % 2 );++$i;?><tr>
					<td><?php echo ($tab["tid"]); ?></td>
					<td><?php echo ($tab["name"]); ?></td>
					<td>
						<img src="/GIT/E-shop/E-shop/Public/images/product/<?php echo ($tab["picture_url"]); ?>" width="100px" height="100px">
					</td>
					<td>
						<a href="<?php echo U('save');?>?tid=<?php echo ($tab["tid"]); ?>">[修改]</a>
						<a href="<?php echo U('cancel');?>?tid=<?php echo ($tab["tid"]); ?>" onclick="return confirm('确定将此记录删除?')">[删除]</a>
					</td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		</tbody>
	</table>
	<div class="result page text-center"><h4><?php echo ($page); ?></h4></div>
</div>
</body>
</html>